<script type="text/javascript" src="<?php echo base_url();?>assets/js/Chart.min.js"></script>
<canvas id="bar-chart" height="300" width="400px"></canvas>
<script>
    
    var barChartData = {
            labels : [<?php echo $chart_label; ?>],
            
            datasets : [
                    {
                            fillColor : "rgba(151,187,205,0.5)",
                            strokeColor : "rgba(151,187,205,1)",
                            data : [<?php echo $chart_data; ?>]
                    }
            ]

    };
    
var myLine = new Chart(document.getElementById("bar-chart").getContext("2d")).Bar(barChartData);

</script>
